﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true" EnableEventValidation="false"
    CodeFile="DeleteDB.aspx.cs" Inherits="User_Employer_DeleteDB" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="../../Controls/ContentHolder/Holder1.ascx" TagName="Holder1" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 628px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <uc1:Holder1 ID="Holder11" runat="server" Title="حذف بانک اطلاعاتی">
   <ContentTemplate>
    
    <table class="style1" align="center" dir="ltr">
        <tr>
            <td align="center" class="style2" dir="rtl">
                <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
                    RepeatDirection="Horizontal" Width="472px">
                    <asp:ListItem Value="year">سال</asp:ListItem>
                    <asp:ListItem Value="number">شماره قرارداد</asp:ListItem>
                    <asp:ListItem Value="vilage">روستا</asp:ListItem>
                 <%--   <asp:ListItem Value="advisor">مشاور</asp:ListItem>
                    <asp:ListItem Value="city">شهرستان</asp:ListItem>--%>
                </asp:RadioButtonList>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Text="حذف بانک اطلاعاتی بر اساس"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3" dir="rtl">
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="View1" runat="server">
                        <table class="style1">
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" runat="server" Text="سال"></asp:Label>
                                    <asp:Label ID="Lblstatus" runat="server" Text=""></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtYear" runat="server" Width="70px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:Button ID="Button1" runat="server" Font-Names="tahoma" Font-Size="Small" OnClick="Button1_Click"
                                        Text="حذف" Width="70px" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Label ID="Label2" runat="server" CssClass="notice" Font-Names="tahoma" Font-Size="Medium"
                                        Height="29px" Text="حذف بانک اطلاعاتی با توجه به سال  تعریف پروژه صورت میپذیرد لذا در ورود سال بسیار دقت کنید."></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View ID="View2" runat="server">
                        <table class="style1">
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" runat="server" Text="شماره قرارداد"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtNumber" runat="server"></asp:TextBox>
                                    <asp:Label ID="Lblstatus1" runat="server"></asp:Label>
                                    <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="جستجو" Width="70px" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                                        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="ID"
                                        EnableModelValidation="True" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound">
                                         
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                        <Columns>
                                            <asp:BoundField DataField="ContractNumber" HeaderText="شماره قرارداد" 
                                                ItemStyle-Width="100" ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ContractDate" HeaderText="تاریخ قرارداد" 
                                                ItemStyle-Width="100" ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="AdvisorName" HeaderText="نام مشاور" 
                                                ItemStyle-Width="100" ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ContractType" HeaderText="نوع قراداد" 
                                                ItemStyle-Width="100" ItemStyle-Height="50" >
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Year" HeaderText="سال قراداد" ItemStyle-Width="100" 
                                                ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                   
                                       
                                            <asp:BoundField HeaderText="روستا" />
                                            <asp:BoundField HeaderText="دهستان" />
                                            <asp:BoundField HeaderText="بخش" />
                                            <asp:BoundField HeaderText="شهرستان" />
                                                 <asp:BoundField DataField="UserId" />
                                                     <asp:BoundField DataField="ID" Visible="False" />
                                                              <asp:BoundField DataField="VillageId"  />
                                                                  <asp:BoundField  Visible="False" />
                                            <asp:ButtonField CommandName="Select" ItemStyle-Font-Size="Small" 
                                                ItemStyle-Height="50" ItemStyle-Width="100" Text="حذف">
                                            <ItemStyle Font-Size="Small" Height="50px" Width="100px" />
                                            </asp:ButtonField>
                                        </Columns>
                                        <EditRowStyle BackColor="#999999" />
                                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#CCCCFF" ForeColor="#333333"/>
                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View ID="View3" runat="server">
                        <table class="style1">
                            <tr>
                                <td>
                                    <table dir="rtl">
                                        <tr>
                                            <td align="left" dir="rtl" width="100">
                                                <asp:Label ID="Label5" runat="server" Text="شهرستان:"></asp:Label>
                                            </td>
                                            <td align="right" dir="rtl" width="200">
                                                <asp:DropDownList ID="DropDownCity" runat="server" Width="150px">
                                                </asp:DropDownList>
                                                <asp:CascadingDropDown ID="CascadingDropDownCity" runat="server" 
                                                    Category="City" LoadingText="لطفا کمی صبر کنید" 
                                                    PromptText="شهرستان را انتخاب نمایید" ServiceMethod="GetCity" 
                                                    ServicePath="~/user/shares/DatabaseLocations.asmx" 
                                                    TargetControlID="DropDownCity"></asp:CascadingDropDown>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" dir="rtl" width="100">
                                                <asp:Label ID="Label6" runat="server" Text="بخش:"></asp:Label>
                                            </td>
                                            <td align="right" dir="rtl" width="200">
                                                <asp:DropDownList ID="DropDownBakhsh" runat="server" Width="150px">
                                                </asp:DropDownList>
                                                <asp:CascadingDropDown ID="CascadingDropDownBakhsh" runat="server" 
                                                    Category="Bakhsh" LoadingText="لطفا کمی صبر کنید" 
                                                    ParentControlID="DropDownCity" PromptText="بخش را انتخاب نمایید" 
                                                    ServiceMethod="GetBakhsh" ServicePath="~/user/shares/DatabaseLocations.asmx" 
                                                    TargetControlID="DropDownBakhsh"></asp:CascadingDropDown>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" dir="rtl" width="100">
                                                <asp:Label ID="Label7" runat="server" Text="دهستان:"></asp:Label>
                                            </td>
                                            <td align="right" dir="rtl" width="200">
                                                <asp:DropDownList ID="DropDownDehestan" runat="server" Width="150px">
                                                </asp:DropDownList>
                                                <asp:CascadingDropDown ID="CascadingDropDownDehestan" runat="server" 
                                                    Category="Dehestan" LoadingText="لطفا کمی صبر کنید" 
                                                    ParentControlID="DropDownBakhsh" PromptText="دهستان را انتخاب نمایید" 
                                                    ServiceMethod="GetDehestan" ServicePath="~/user/shares/DatabaseLocations.asmx" 
                                                    TargetControlID="DropDownDehestan"></asp:CascadingDropDown>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" dir="rtl" width="100">
                                                <asp:Label ID="Label8" runat="server" Text="آبادی:"></asp:Label>
                                            </td>
                                            <td align="right" dir="rtl" width="200">
                                                <asp:DropDownList ID="DropDownVillage" runat="server" AutoPostBack="true" 
                                                    Width="150px" 
                                                    onselectedindexchanged="DropDownVillage_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                <asp:CascadingDropDown ID="CascadingDropDownVillage" runat="server" 
                                                    Category="Village" LoadingText="لطفا کمی صبر کنید" 
                                                    ParentControlID="DropDownDehestan" PromptText="آبادی را انتخاب نمایید" 
                                                    ServiceMethod="GetVillage" ServicePath="~/user/shares/DatabaseLocations.asmx" 
                                                    TargetControlID="DropDownVillage"></asp:CascadingDropDown>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                                        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                                        CellPadding="3" DataKeyNames="ID" EnableModelValidation="True" 
                                        OnRowCommand="GridView2_RowCommand" OnRowDataBound="GridView2_RowDataBound">
                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                  <Columns>
                                            <asp:BoundField DataField="ContractNumber" HeaderText="شماره قرارداد" 
                                                ItemStyle-Width="100" ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ContractDate" HeaderText="تاریخ قرارداد" 
                                                ItemStyle-Width="100" ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="AdvisorName" HeaderText="نام مشاور" 
                                                ItemStyle-Width="100" ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ContractType" HeaderText="نوع قراداد" 
                                                ItemStyle-Width="100" ItemStyle-Height="50" >
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Year" HeaderText="سال قراداد" ItemStyle-Width="100" 
                                                ItemStyle-Height="50">
                                            <ItemStyle Height="50px" Width="100px" />
                                            </asp:BoundField>
                                   
                                       
                                            <asp:BoundField HeaderText="روستا" />
                                            <asp:BoundField HeaderText="دهستان" />
                                            <asp:BoundField HeaderText="بخش" />
                                            <asp:BoundField HeaderText="شهرستان" />
                                                 <asp:BoundField DataField="UserId" />
                                                     <asp:BoundField DataField="ID" Visible="False" />
                                                              <asp:BoundField DataField="VillageId"  />
                                                                  <asp:BoundField  Visible="False" />
                                            <asp:ButtonField CommandName="Select" ItemStyle-Font-Size="Small" 
                                                ItemStyle-Height="50" ItemStyle-Width="100" Text="حذف">
                                            <ItemStyle Font-Size="Small" Height="50px" Width="100px" />
                                            </asp:ButtonField>
                                        </Columns>
                                        <EditRowStyle BackColor="#999999" />
                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#CCCCFF" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    </asp:GridView>
                                    <asp:Label ID="Lblstatus2" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                </asp:MultiView>
            </td>
        </tr>
    </table>
    &nbsp; </ContentTemplate></uc1:Holder1>
</asp:Content>
